# class Apple:
#     count = 0
#     @classmethod
#     def add_two(cls):
#         cls.count = 2
# print(Apple.count)
# Apple.add_two()
# print(apple.count)



# class Example:
#     num = 10
#
#     @staticmethod
#     def static_method():
#         print(f"类属性的值为： {Example.num}")
#         print("---静态方法---")
#
#
#         example = Example()
#         example.static_method()
#         Example.static_method()

# class 子类名（父类名）
#       ···

# class Amphibian:
#     name = "两栖动物"
#     def features(self):
#         print("幼年用恩呼吸")
#         print("成年用肺兼皮肤呼吸")
# class Frog(Amphibian):
#     def attr(self):
#         print("我会呱呱叫")
#
# frog= Frog()
# frog.features()
# frog.attr()


# class Englidh:
#     def receive_eng_know(self):
#         print('具备英语知识。')
# class Math:
#     def  receive_math_know(self):
#         print('具备数学知识。')
# class Student(Englidh, Math):
#     def study(self):
#         print('学生的任务是学习。')
#
# stu = Student()
# stu.receive_eng_know()
# stu.receive_math_know()
# stu.study()


# class Felines:
#     def speciality(self):
#         print("猫科动物善于奔跑")
# class Cat(Felines):
#     name = "猫"
#     def speciality(self):
#         print(f'{self.name}爱吃鱼')
#         print(f'{self.name}会爬树')
#
# cat = Cat()
# cat.speciality()


class Cat(Felines):
    name = "猫"
    def speciality(self):
        print(f'{self.name}爱吃鱼')
        print(f'{self.name}会爬树')
        print('-' * 20)
        super().specialityt()

cat = Cat()
cat.speciality()









